package common.data.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ApiModel("用户查询参数类")
public abstract class BasePageQuery implements Serializable {
    private static final long serialVersionUID = 7967181543200226205L;
 
    /**
     * 描述: 当前页数
     * 作者: lljm
     * 日期: 2024/6/6
     */
    @ApiModelProperty("查询的页面索引")
    @NotNull(message = "pageIndex不能为空")
    private Integer pageIndex;

    /**
     * 描述: 每页记录数
     * 作者: lljm
     * 日期: 2024/6/6
     */
    @ApiModelProperty("单页记录数")
    @NotNull(message = "pageSize 不能为空")
    private Integer pageSize;




}
